<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div class="line-big">
	<div class="xl12">
		<div class="panel border-back" id="write_goods_info_div">
			<div class="panel-foot bg-yellow-light border-back">
				<div class="line-big">
					<div class="xl2 text-center border-small border-right border-blue">客服昵称</div>
					<div class="xl3 text-center border-small border-right border-blue">买家信息</div>
					<div class="xl3 text-center border-small border-right border-blue">添加时间</div>
					<div class="xl3 text-center">操作</div>
				</div>
			</div>
			<ul class="list-group list-striped">
				<c:forEach items="${kefuViewList}" var="kv">
					<li id="c_${kv.kefu.kefuId }">
						<div class="line-big">
							<div class="xl2 text-left">
								<h4>
									<strong>${kv.kefu.kefuNickname }</strong>
								</h4>
							</div>
							<div class="xl1 text-center">
								<img class="center-block img-responsive" style="max-height: 60px; max-width: 60px;" src="${kv.buyer.buyerHeadimgurl }" />
							</div>
							<div class="xl2 text-center">
								<h5 class="text-left">
									<strong> ${kv.buyer.buyerNickname } </strong>
									<c:if test="${kv.buyer.buyerName!=null&&kv.buyer.buyerName!='' }">
									(${kv.buyer.buyerName })
									</c:if>
								</h5>
								<h6 class="text-left G-MarginTop5">
									<c:if test="${kv.buyer.buyerCountry!=null&&kv.buyer.buyerCountry!='' }">
									${kv.buyer.buyerCountry }
									</c:if>
									<c:if test="${kv.buyer.buyerProvince!=null&&kv.buyer.buyerProvince!='' }">
									${kv.buyer.buyerProvince }
									</c:if>
									<c:if test="${kv.buyer.buyerCity!=null&&kv.buyer.buyerCity!='' }">
									${kv.buyer.buyerCity }
									</c:if>
								</h6>
								<c:if test="${kv.buyer.buyerSex!=null&&kv.buyer.buyerSex!='' }">
									<h6 class="text-left G-MarginTop5">${kv.buyer.buyerSex=='1'?'男':'女' }</h6>
								</c:if>
							</div>
							<div class="xl3 text-center">
								<fmt:formatDate value="${kv.kefu.kefuAddTime }" pattern="yyyy-MM-dd HH:mm" />
							</div>
							<div class="xl3 text-center">
								<button class="kefu_need_update_button button button-little bg-blue" data-id="${kv.kefu.kefuId }">
									<span class="icon-pencil"></span> 修改
								</button>
							</div>
						</div>
					</li>
				</c:forEach>
			</ul>
		</div>
	</div>
</div>
<div class="clearfix G-MarginTop100"></div>

<div style="display: none;" id="goodsTypeJson">${goodsTypeJson }</div>
<div style="display: none;" id="k" data-value="${param.k }"></div>
<div style="display: none;" id="tid" data-value="${param.tid }"></div>
<div id="see_goods_detail"></div>
<script type="text/javascript" src="js/pintuer.js"></script>
<script type="text/javascript">
	$(function()
	{
		$(".kefu_need_update_button").click(function()
		{
			$("#admin_div").load("shop/shop_update_kefu?id=" + $(this).attr("data-id"), {}, function()
			{

			});
		});

	});
</script>